//
//  DDTextFieldEditViewController.h
//  DingDongZP
//
//  Created by Jyh on 16/4/22.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDBaseViewController.h"

typedef void(^TextBackBlock)(NSString *text);

/**
 *  TextField VC基类
 */
@interface DDTextFieldEditViewController : DDBaseViewController

@property (copy, nonatomic) TextBackBlock block;

@property (strong, nonatomic) UITextField *textField;

@property (strong, nonatomic) UILabel *characterNumLabel;

- (instancetype)initWithMaxCharacterNumber:(NSInteger)number;

- (void)setBlock:(TextBackBlock)block;

@property (nonatomic, copy) NSString *value;

//  设置最大编辑字数
@property (assign, nonatomic) NSInteger maxCharacterNumber;

@property (nonatomic, copy) BOOL (^textFilter)(NSString *text);

@end
